<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 梁家源
  Date: 2021/6/4
  Time: 10:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/static/layui-v2.5.7/layui/css/layui.css"/>
    <script src="${pageContext.request.contextPath}/static/layui-v2.5.7/layui/layui.js" type="text/javascript"
            charset="UTF-8"></script>
    <script src="${pageContext.request.contextPath}/static/script/jquery-1.7.2.js" type="text/javascript"
            charset="UTF-8"></script>
</head>
<script>
    layui.use('element', function () {
        var element = layui.element;
    });

    layui.use('form', function () {
        var form = layui.form;
    });
</script>

<body>
    <div class="layui-container" style="margin-top: 50px;padding-left: 200px;padding-right: 200px">
        <fieldset class="layui-elem-field layui-field-title" >
            <legend style="margin-left: 50px;">新增管理员</legend>
        </fieldset>
        <form class="layui-form layui-form-pane" action="${pageContext.request.contextPath}/createAdmin" method="post">
            <div class="layui-row">
                <div class="layui-form-item">
                    <label class="layui-form-label">姓名</label>
                    <div class="layui-input-block">
                        <input type="text" name="aname" required lay-verify="required" placeholder="请输入姓名" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">密码</label>
                    <div class="layui-input-block">
                        <input type="text" name="apassword" required lay-verify="required" placeholder="请输入密码" autocomplete="off"  class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item" >
                    <label class="layui-form-label">院系</label>
                    <div class="layui-input-block">
                        <select name="afaculty" lay-verify="required">
                            <option value="管理学院" selected>管理学院</option>
                            <option value="计算机学院">计算机学院</option>
                            <option value="经济与贸易学院">经济与贸易学院</option>
                            <option value="应用数学学院">应用数学学院</option>
                            <option value="政法学院">政法学院</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item" >
                    <label class="layui-form-label">权限</label>
                    <div class="layui-input-block">
                        <select name="apower" lay-verify="required">
                            <option value="general" selected>普通管理员</option>
                            <option value="root">超级管理员</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">手机</label>
                    <div class="layui-input-block">
                        <input type="text" name="aphone" required  lay-verify="required" placeholder="请输入手机" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-inline" style="padding-left: 40%">
                        <button class="layui-btn" lay-submit lay-filter="formDemo">新建</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>

            </div>

        </form>

    </div>


</body>
</html>
